<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${question.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">用户id：</label>
                            <div class="col-sm-8">
                                <input id="userid" name="userid" th:value="${question.userid}" class="form-control"
                                       readonly
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">主题：</label>
                            <div class="col-sm-8">
                                <input id="questiontheme" name="questiontheme" th:value="${question.questiontheme}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">问题类型：</label>
                            <div class="col-sm-8">
                                <input id="questiontype" name="questiontype" th:value="${question.questiontype}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">内容：</label>
                            <div class="col-sm-8">
                                <textarea id="questioncontent" name="questioncontent"
                                          th:text="${question.questioncontent}" class="form-control"></textarea>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片：</label>
                            <div class="col-sm-3">
                                <input id="image" name="image" th:value="${question.image}" class="form-control"
                                       type="hidden">
                                <img id="uimg" width="150px;" th:src="${question.image}">
                            </div>
                            <div class="col-sm-6 ">
                                <input type="file" id="file" name="file" accept="image/jpeg,image/png">

                                <button type="button" class="btn btn-success" onclick="uploadFile()">
                                    <i class="fa fa-cloud"></i>上传图片
                                </button>

                                <span style="color: red">步骤：1.选择文件 2.上传图片</span>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">创建时间：</label>
                            <div class="col-sm-8">
                                <input id="createtime" name="createtime"
                                       th:value="${#dates.format(question.createtime,'yyyy-MM-dd  hh:mm:ss')}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">回复内容：</label>
                            <div class="col-sm-8">
                                <textarea id="returncontent" name="returncontent" th:text="${question.returncontent}"
                                          class="form-control" ></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">回复时间：</label>
                            <div class="col-sm-8">
                                <input id="returndate" name="returndate"
                                       th:value="${#dates.format(question.returndate,'yyyy-MM-dd  hh:mm:ss')}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/system/question/edit.js">
</script>
</body>
</html>
